import Vue from 'vue'
import '@/config/chartTheme/default'
import ECharts from 'vue-echarts'
// import 'echarts-wordcloud';

import 'echarts/lib/chart/pie'
import 'echarts/lib/chart/bar'
import 'echarts/lib/chart/line'
import 'echarts/lib/chart/radar'
import 'echarts/lib/chart/scatter'
import 'echarts/lib/chart/map'
import 'echarts/lib/chart/gauge'

// 引入提示框和图例组件
import 'echarts/lib/component/tooltip'
import 'echarts/lib/component/legend'
import 'echarts/lib/component/dataZoom'
import 'echarts/lib/component/graphic'
import 'echarts/lib/component/markLine'
import 'echarts/lib/component/markArea'
import 'echarts/lib/component/legendScroll'
// // 地图相关库
// import china from 'echarts/map/json/china.json'
// import 'echarts/lib/component/visualMap'
// import 'echarts/lib/component/geo'

// 注册中国地图
// ECharts.registerMap('china', china)
Vue.component('v-chart', ECharts)
Vue.prototype.$ECharts = ECharts
